package com.shigu.component.shiro;


import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 自定义登陆令牌
 * @author zjb
 */
public class CaptchaUsernamePasswordToken extends UsernamePasswordToken {
	/** 描述 */
	private static final long serialVersionUID = -3178260335127476542L;

	private String captcha;
	/**
	 * 不设置或0为正常方式登陆，设置为1表示微信登陆，不需要验密码
	 */
	private int type;
	/**
	 * 免密登陆时用
	 */
	private Long userId;

	private String domain;


	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	public CaptchaUsernamePasswordToken() {
		super();
	}

	public CaptchaUsernamePasswordToken(String username, String password,String domain,
			boolean rememberMe, String host, String captcha) {
		super(username, password, rememberMe, host);
		this.captcha = captcha;
		this.domain=domain;
	}


	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}
}
